<template>
  <div>
    <div class="weekend-recommend">周末去哪儿</div>
    <ul>
      <li class="item border-bottom" v-for="item of weekendLists" :key="item.id">
        <div class="item-img-wrapper">
          <img class="item-img-content" :src="item.imgUrl" alt="">
        </div>
        <div class="item-info">
          <p class="item-title">{{item.title}}</p>
          <p class="item-desc">{{item.desc}}</p>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'WeekendRecommend',
  data () {
    return {
      weekendLists: [{
        id: '0001',
        imgUrl: 'https://imgs.qunarzz.com/p/p70/1809/e7/4941057a6aae702.jpg_256x160_9fee6ccb.jpg',
        title: '海洋世界',
        desc: '扩大飞机我今儿覅打扫房间阿文发生的JFK劳动dagsdf是解放立刻搭街坊的咖啡骄傲的开发了看到阿斯达克放假啊 法'
      },
      {
        id: '0002',
        imgUrl: 'https://imgs.qunarzz.com/p/p70/1809/e7/4941057a6aae702.jpg_256x160_9fee6ccb.jpg',
        title: '海洋世界',
        desc: '扩大飞机我今儿覅打扫房间阿文发生的JFK劳动法'
      }
      ]
    }
  }
}
</script>

<style lang="stylus" scoped>
  @import "~styles/mixins.styl"
  .weekend-recommend
    line-height .8rem
    background #eee
    text-indent .2rem
  .item-img-wrapper
    overflow hidden
    height 0
    padding-bottom 62.5%
    .item-img-content
      width 100%
  .item-info
    line-height .4rem
    text-indent .2rem
    min-width 0
    .item-title
      font-size .35rem
      font-weight 500
      ellipse()
    .item-desc
      font-size .2rem
      color #ccc
      ellipse()

</style>
